<script setup>
import { RouterView, useRoute, useRouter } from 'vue-router'
import HomeAside from '@/components/home/HomeAside.vue'
import HomeMain from '@/components/home/HomeMain.vue'

const route = useRoute()
</script>

<template>
  <el-container>
    <el-header>
      <el-row>
        <el-col :span="18" class="flex-start-center">
          <el-icon :size="30">
            <Fold />
          </el-icon>
          <span>后台管理系统</span>
        </el-col>
        <el-col :span="6" class="flex-end-center">
          <span class="mr10">用户名</span>
          <el-button>退出登录</el-button>
        </el-col>
      </el-row>
    </el-header>
    <el-container>
      <el-aside width="200px">
        <HomeAside />
      </el-aside>
      <el-main>
        <RouterView />
      </el-main>
    </el-container>
  </el-container>
</template>
<style scoped>
.el-container {
  height: 100%;
  background-color: #f5f7fa;
  .el-header {
    height: 60px;
    line-height: 60px;
    background: #0ba6fa;

    .el-icon {
      cursor: pointer;
    }
  }

  .el-container {
    .el-aside {
      height: 100%;

      .el-menu {
        height: 100%;
      }
    }
  }
}
</style>
